package com.isunland.managesystem.entity;

import java.util.ArrayList;

/**
 * 考勤汇总筛选员工实体类
 *
 * @author wu
 */
public class AttendanceSummaryStaffDialog {
  private int result;
  private String message;
  private ArrayList<SummaryStaff> dataList;

  public class SummaryStaff {
    private String jobNo;// 员工工号
    private String name;// 员工姓名
    private String id;// 员工id
    private String deptName;
    private String deptFullName;
    private String deptCode;

    public String getDeptName() {
      return deptName;
    }

    public void setDeptName(String deptName) {
      this.deptName = deptName;
    }

    public String getDeptFullName() {
      return deptFullName;
    }

    public void setDeptFullName(String deptFullName) {
      this.deptFullName = deptFullName;
    }

    public String getDeptCode() {
      return deptCode;
    }

    public void setDeptCode(String deptCode) {
      this.deptCode = deptCode;
    }

    public String getJobNo() {
      return jobNo;
    }

    public void setJobNo(String jobNo) {
      this.jobNo = jobNo;
    }

    public String getName() {
      return name;
    }

    public void setName(String name) {
      this.name = name;
    }

    public String getId() {
      return id;
    }

    public void setId(String id) {
      this.id = id;
    }
  }

  public int getResult() {
    return result;
  }

  public void setResult(int result) {
    this.result = result;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public ArrayList<SummaryStaff> getDataList() {
    return dataList;
  }

  public void setDataList(ArrayList<SummaryStaff> dataList) {
    this.dataList = dataList;
  }

  public ArrayList<SummaryStaff> turn(ArrayList<MessageContact> messageContacts) {
    if (messageContacts == null) return null;
    ArrayList<SummaryStaff> list = new ArrayList<SummaryStaff>();
    for (MessageContact messageContact : messageContacts) {
      SummaryStaff item = new SummaryStaff();
      item.setName(messageContact.getName());
      item.setDeptCode(messageContact.getDeptCode());
      item.setDeptName(messageContact.getDeptName());
      //			item.setDeptFullName(messageContact.getde);
      item.setId(messageContact.getId() + "");
      item.setJobNo(messageContact.getJobNo());
      list.add(item);
    }

    return list;
  }
}
